#define front_layout()
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="UTF-8">
		<title>#(siteTitle)</title>
		<meta name="description" content="Welcome To #(siteTitle)">
		<meta name="keywords" content="#(siteTitle),编码,编程,java">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<link rel="shortcut icon" href="#(ctx)/favicon.ico">
		<link rel="stylesheet" type="text/css" href="#(ctx)/resources/css/common.css">
		<link rel="stylesheet" type="text/css" href="#(ctx)/resources/css/front/index.css">
		### 样式开始
		#@css?()
		### 样式结束
		
		
		<script type="text/javascript" src="#(ctx)/extends/jquery.min-v1.11.3.js"></script>
		<script>
			var ctx = '#(ctx)';
		</script>
	</head>
	<body>
		<div class="nav">
			<div class="site-info">
				<a title="网站首页" href="#(ctx)">#(siteTitle)</a>
			</div>
			<div class="user-info">
				#if(session.tusk?? == null)
				<a href="#(ctx)/user/tlogin">登录</a>
				<a href="#(ctx)/user/treg">注册</a>
				#end
				#if(session.tusk?? != null)
				<a href="javascript:;" onclick="showUserExt()">#(session.tusk.nickname??)</a>
				<ul class="user-detail hide">
					<li><a href="#(ctx)/user/center/#(session.tusk.id??)">个人资料</a></li>
					#auth(session.tusk.id??, 'friends')
					<li><a href="#(ctx)#resUrl('friends')">#resName('friends')</a></li>
					#end
					#auth(session.tusk.id??, 'backend')
					<li><a href="#(ctx)#resUrl('backend')">#resName('backend')</a></li>
					#end
					<li><a href="#(ctx)/user/logout">退出</a></li>
				</ul>
				#end
			</div>
		</div>
		
		### 内容开始
		#@main()
		### 内容结束
		
		### 脚本开始
		<script type="text/javascript" src="#(ctx)/resources/js/front/index.js"></script>
		#@js?()
		### 脚本结束
	</body>
</html>
#end